# -*- coding: UTF-8 -*-
# filename: Face.py
# author by: Face
# for循环：
for i in range(1,10):
    for j in range(1,i+1):
        print('{}*{}={} \t'.format(j,i,j*i),end=' ')
    print()


# while循环：
i = 1
while i < 10:
    j = 1
    while j < i + 1:
        print('%s*%s=%s'%(j,i,j * i),end=" ")
        j +=1
    i +=1
    print()